package com.zhanghao.sdk;

import android.content.Intent;

import com.zhanghao.sdk.model.Order;

import java.util.HashMap;

public class Channel implements ChannelAPI, ChannelSDK {
    // sdk type 如果为0 说明是官方渠道，为其他的则是第三方渠道
    // 第三分渠道的init，login，pay需要重载
    // 官方渠道的留空即可
    public static final int API_TYPE = 0;

    public static Channel instance;

    @Override
    public void regReport(HashMap hashMap) {

    }

    @Override
    public void loginReport(HashMap hashMap) {

    }

    @Override
    public void payReport(HashMap hashMap) {

    }

    @Override
    public void customReport(String reportEventName, HashMap hashMap) {

    }

    @Override
    public void login() {

    }

    @Override
    public void pay(Order order) {

    }


    @Override
    public void customEvent(String eventName, HashMap args) {

    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {

    }

    @Override
    public void onResume() {

    }

    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {

    }

    public static Channel getInstance() {
        if (instance == null) {
            instance = new Channel();
        }
        return instance;
    }
}
